#ifndef OPTION_H
#define OPTION_H
#include <cstdlib>
#include <string>
#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include "collision.h"

class Option
{
    public:
    Option();
    ~Option();
    void ChangerOption(std::string option, int valeur);
    void ChangerTouche(std::string touche, sf::Keyboard::Key new_touche);
    sf::Keyboard::Key GetTouche(std::string touche);
    int GetWidth();
    int GetHeight();
    int GetVolume();

    private:
    std::vector<std::string> m_touche;
    int m_width;
    int m_height;
    int m_volume;
};
void modifier_fichier(std::string mot_recherche, std::string fichier, std::string remplacement);
int chercher_fichier(std::string mot_recherche, std::ifstream *fichier);
std::string chercher_touche(std::string mot_recherche, std::ifstream *fichier);
#endif // OPTION_H
